package br.com.primeira.scenes.gamescenes;

import org.andengine.engine.camera.Camera;
import org.andengine.entity.scene.background.Background;

import br.com.primeira.activities.GameActivity;
import br.com.primeira.entities.Map;
import br.com.primeira.scenes.GameScene;
import br.com.primeira.util.Vector2;

public class MapScene extends GameScene
{
	Map currentMap;
	
	public MapScene(GameActivity gameActivity)
	{
		super(gameActivity);
		
		setScale(2.0f);
		setBackground(new Background(0f, 0f, 0f));
		
		currentMap = assetPool.getMap("mapa1");
		
		attachChild(currentMap);
		
		Camera camera = gameActivity.getEngine().getCamera();
		Vector2 mapCenter = currentMap.getCenter();
		
		camera.setCenter(mapCenter.getX() * 2, mapCenter.getY() * 2);
		
		//HUD hud = new HUD();
		//hud.attachChild(someShit);
		//camera.setHUD(hud);
	}
	
	@Override
	protected void onManagedUpdate(float pSecondsElapsed)
	{
		super.onManagedUpdate(pSecondsElapsed);
	}
}
